<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录界面</title>
<script>
function checkForm() 
{   
    var _form = document.form1;
    if(_form.username.value == "")   
    {
        //_form.type.focus(); 
        alert('该对话框不能为空 ! ');   
        return false;   
    }
    else
    {
        return true;
    }
} 
</script>
</head>
<body>
<form name="form1" action = "login.do" method = "post" onSubmit = "return checkForm();">
<font color="#FF0000">${back}</font> <br/>
	<table>
	<tr><td>学号：</td>
		<td><input type = "text" id="type" name = "sno"/></td>
	</tr>
	<tr><td>姓名：</td>
		<td><input type = "text" name = "password"/></td>
	</tr>
	<!--<tr><td>头像：</td>
		<td><input type = "file" name = "ico"/></td>
	</tr>-->
	<tr><td><input type = "submit" value = "登陆"/></td>
		<td><input type = "reset" value = "取消"/></td>
	</table>
</form>
</body>
</html>